package cn.edu.qlnu.xky.test.model;

import java.util.Date;

import cn.edu.qlnu.xky.test.common.MsgExchage;

public class Student {

	private int id;
	private String psw;// = request.getParameter("psw");
	private String gender;// = request.getParameter("gender");
	private String userName;// = request.getParameter("userName");
	private Date birthday;// = request.getParameter("birthday");
	private String[] hobbies;// = request.getParameterValues("hobby");
	private String school;// = request.getParameter("school");
	private String temp;// = request.getParameter("temp");
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id=id;
	}

	public String getPsw() {
		return psw;
	}

	public void setPsw(String psw) {
		this.psw = psw;
	}

	public String getGender() {
		return gender;
	}
	
	public String getGenderStr() {
		return MsgExchage.chGender(gender);
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getBirthday() {
		return birthday;
	}
	
	public String getBirthdayYMDStr() {
		return MsgExchage.chDate(birthday);
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String[] getHobbies() {
		return hobbies;
	}
	
	public String getHobbiesStr() {
		return MsgExchage.chHobbies(hobbies);
	}
	
	public String getHobbiesKeyStr() {
		return MsgExchage.keyHobbies(hobbies);
	}

	public void setHobbies(String[] hobbies) {
		this.hobbies = hobbies;
	}

	public String getSchool() {
		return school;
	}
	
	public String getShoolStr() {
		return MsgExchage.exeChangeSchool(school);
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}
	
}
